﻿<src:PMFDataControl
    x:Class="SmartSpace.UI.Silverlight.Dynamic.Controls.SingleOrgControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:src="clr-namespace:SmartSpace.UI.Silverlight.Dynamic.Controls"
    mc:Ignorable="d">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <TextBox Name="m_textOrgName"  Grid.Column="0" MinWidth="100" IsReadOnly="True" VerticalAlignment="Center"/>
            <Button x:Name="m_btnBrowser" Click="OnButtonBrowserClick" Grid.Column="1" >
                <StackPanel Orientation="Horizontal">
                    <Image Source="../Resources/open.png" Margin="0,0,3,0"/>
                    <TextBlock Text="选择"/>
                </StackPanel>
            </Button>
        </Grid>
        <Border Background="Red" Name="_ctlMessage" BorderBrush="Yellow"  MouseEnter="_ctlMessage_MouseEnter" BorderThickness="1" Visibility="Collapsed">
            <Border.Effect>
                <BlurEffect Radius="1"/>
            </Border.Effect>
            <TextBlock Text="请选择单位" Foreground="White" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
        </Border>
    </Grid>
</src:PMFDataControl>
